package abstractfactory;

/**
 * @author 赵希奥
 * @date 2022/3/16 12:48
 * @gitHub https://github.com/CKXGZXA
 * @gitee https://gitee.com/ckxgzxa
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        // 使用抽象层定义
        HisenseFactory factory;
        Conditioner conditioner;
        Refrigerator refrigerator;
        Television television;
        factory = (HisenseFactory) XMLUtil.getBean();
        conditioner = factory.createConditioner();
        refrigerator = factory.createRefrigerator();
        television = factory.createTelevision();
        conditioner.display();
        refrigerator.display();
        television.display();
    }
}
